// 导入封装好的网络请求类工具
import request from '../../../../utils/request';

//条件查询
export const FindWorkFlowRealByCondition = (searchModel) =>{
    return request ({
        url : '/workflowReal/findWorkflowRealByCondition',
        method :'post',
        data: searchModel
    })
}
//分页查询
export const FindWorkflowReal = (current,size,condition) => {
    return request({
        url: `/workflowReal/findWorkflowRealByPage/${current}/${size}`,
        method: 'post',
        data:condition
    })
}
//添加新增

export const AddWorkFlowReal = (form) =>{
    return request({
        url: '/workflowReal/workflowRealAdd',
        method:'post',
        data:form
    })
}

//保存编辑
export const EditOneWorkFlowReal = (form) => {
    return request({
        url: '/workflowReal/workflowRealUpdate',
        method: 'put',
        data: form
    })
}
//删除
export const DeleteOneWorkFlowReal = (id) => {
    return request({
         url: `/workflowReal/workflowRealDelete/${id}`,
        method: 'delete'
    })
}